Text Type | String |
---|---|
Numbers | Integer , Float, complex |
Sequence Types | List, Tuple ,Sets |
Mapping Type | Dictionary |
Boolean Type | Bool |
Binary Types | Bytes, Bytearray |
false | none | in | w hile |
assert | def | import | try |
as | finally | if | return |
and | except | nonlocal | raise |
true | else | lambda | yield |
del | elif | is | with |
pass | break | not | class |
grom | for | or | continue |
Prefix | Description | Base | Example |
---|---|---|---|
0b or 0B | Binary Number | 2 | 0b0101 , 0b0011 |
0o or 0O | Octal Number | 7 | 0o134, 0o017 |
Nothing | Decimal Number | 10 | 12, 34 , -5 |
0x or 0X | Hexadecimal Number | 16 | 0x9ff , 0x1AC |
String Quotes | Example |
---|---|
Single quotes | 'Welcome to CCIT' |
Double quotes | "Welcome to CCIT" |
Triple quotes | '''Welcome to
CCIT Amravati''' """Welcome to CCIT Amravati""" |
Boolean Datatype | True and False |
---|